/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.TrainDocumentRelBO;
import com.xy.biz.ts.domain.query.TrainDocumentRelQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-2
 */
public interface TrainDocumentRelManager {

	/**
	 * 保存
	 *
	 * @param trainDocumentRelBO
	 */
	int saveTrainDocumentRel(TrainDocumentRelBO trainDocumentRelBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllTrainDocumentRel(Collection<TrainDocumentRelBO> collection);

	/**
	 * 更新
	 *
	 * @param trainDocumentRelBO
	 */
	int updateTrainDocumentRel(TrainDocumentRelBO trainDocumentRelBO);

	/**
	 * 更新
	 *
	 * @param trainDocumentRelBO
	 */
	int updateTrainDocumentRelReleaseFlag(TrainDocumentRelBO trainDocumentRelBO);

	/**
	 * 删除
	 *
	 * @param trainDocumentRelId
	 */
	int deleteTrainDocumentRel(Long trainDocumentRelId);

	/**
	 * 查找一个
	 *
	 * @param trainDocumentRelId
	 * @return
	 */
	TrainDocumentRelBO getTrainDocumentRel(Long trainDocumentRelId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<TrainDocumentRelBO> listTrainDocumentRelById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<TrainDocumentRelBO> listTrainDocumentRel(TrainDocumentRelQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countTrainDocumentRel(TrainDocumentRelQuery query);

    void deleteTrainDocumentRelByTrainId(Long trainId);
}
